﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MageWars.GameElements;
using MageWars.Support.StateMachines.Behaviors;

namespace MageWars.Support.StateMachines.States
{
    public class Heal : State
    {
        public Heal(Mage Self)
            : base(Self)
        {

        }

        public override MWAction GetNextAction()
        {
            if (Self.HP < 100)
            {
                Self.HP++;
                return new MWAction() { Speed = 0 };
            }
            else
            {
                return new MWAction()
                {
                    //NewState = this.PreviousState
                    NewState = new SeekSM(Self, Self.Position)
                };
            }
        }

        public override Node[] GetCamino()
        {
            return new Node[] { };
        }
    }
}